package cn.attackme.myuploader.service.impl;

import cn.attackme.myuploader.dao.Time_indexDao;
import cn.attackme.myuploader.model.Date_Api;
import cn.attackme.myuploader.model.Section;
import cn.attackme.myuploader.model.Time_index;
import cn.attackme.myuploader.service.Time_indexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;
@Service
public class Time_indexServiceImpl  implements Time_indexService {
    @Autowired
    private Time_indexDao time_indexDao;

    @Override
    public Time_index getTime_index(Long id) {
        return time_indexDao.getTime_index(id);
    }

    @Override
    public int add(Time_indexDao time_index) {
        return time_indexDao.add(time_index);
    }

    @Override
    public int update(Time_indexDao time_index) {
        return time_indexDao.update(time_index);
    }

    @Override
    public int deleteById(Long id) {
        return time_indexDao.deleteById(id);
    }

    @Override
    public List<Map<String, Object>> fandAllList() {
        return time_indexDao.fandAllList();
    }

    @Override
    public int findPeriod_id(Date time) {
        return time_indexDao.findPeriod_id(time);
    }
}
